
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<header id="user" th:fragment="header-user">
    <!--顶部导航条 -->
    <div class="am-container header">
        <ul class="message-l">
            <div class="topMessage">
                <div class="menu-hd">
                    <th:block th:if="${session.mallUser == null}">
                    <a href="/login" target="_top" class="h">亲，请登录</a>
                    <a href="/register" target="_top">免费注册</a>
                    </th:block>
                    <th:block th:if="${session.mallUser != null}">
                        <a href="#" target="_top" class="h" th:text="${session.mallUser.nickName}">xxx</a>
                    <a href="/logout" target="_top">退出登录</a>
                    </th:block>
                </div>
            </div>
        </ul>
        <ul class="message-r">
            <div class="topMessage home">
                <div class="menu-hd"><a href="/" target="_top" class="h">商城首页</a></div>
            </div>
            <div class="topMessage my-shangcheng">
                <div class="menu-hd MyShangcheng"><a href="/personal/index" target="_top"><i
                        class="am-icon-user am-icon-fw"></i>个人中心</a></div>
            </div>
            <div class="topMessage mini-cart">
                <div class="menu-hd"><a id="mc-menu-hd" href="/shop-cart" target="_top"><i
                        class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span></a></div>
            </div>
        </ul>
    </div>
</header>
<header id="search" th:fragment="header-search">
    <!--悬浮搜索框-->
    <div class="nav white">
        <!--<div class="logo"><a href="/"><img src="/images/logo.png"/></a></div>-->
        <div class="logoBig">
            <li><a href="/"><img src="/images/logo.png"/></a></li>
        </div>

        <div class="search-bar pr">
            <a name="index_none_header_sysc" href="#"></a>
            <form action="search">
                <input id="searchInput" name="keyword" type="text" placeholder="搜索" autocomplete="off">
                <input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
            </form>
        </div>
    </div>
</header>
</html>
